home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 45
/
Aminet 45 (2001)(GTI - Schatztruhe)[!][Oct 2001].iso
/
Aminet
/
dev
/
c
/
vbcc.lha
/
vbcc
/
init_vbcc_new
< prev
next >
Wrap
AmigaDOS Script File
|
2001-06-27
|
3KB
|
106 lines
.key switch
.bra {
.ket }
if "{switch}" eq "on"
assign >nil: vbcc: exists
if warn
echo "activating vbcc ... " noline
assign vbcc: <path to vbcc 0.8>
if exists vbcc:targets/m68k-amigaos
assign vbccm68k: vbcc:targets/m68k-amigaos
assign vincludem68k: vbccm68k:local/include vbccm68k:include
assign vincludem68k: <path to os includes> add
assign vlibm68k: vbccm68k:local/lib vbccm68k:lib
; assign ixinclude: <path to ixemul header files, if needed>
endif
if exists vbcc:targets/ppc-powerup
assign vbccppc: vbcc:targets/ppc-powerup
assign vincludeppc: vbccppc:local/include vbccppc:include
assign vincludeppc: <path to os includes> add
assign vlibppc: vbccppc:local/lib vbccppc:lib
endif
if exists vbcc:targets/ppc-warpos
assign vbccwos: vbcc:targets/ppc-warpos
assign vincludewos: vbccwos:local/include vbccwos:include
assign vincludewos: <path to os includes> add
assign vlibwos: vbccwos:local/lib vbccwos:lib
endif
if exists vbcc:targets/ppc-morphos
assign vbccmos: vbcc:targets/ppc-morphos
assign vincludemos: vbccmos:local/include vbccmos:include
assign vincludemos: <path to os includes> add
assign vlibmos: vbccmos:local/lib vbccmos:lib
endif
assign c: vbcc:bin add
setenv VBCC vbcc:
stack 100000
alias vb tovbr vc
echo "done"
else
echo "vbcc already active !"
endif
skip ENDE
endif
if "{switch}" eq "off"
assign >nil: vbcc: exists
if warn
echo "vbcc not active !"
else
echo "removing vbcc ... " noline
unalias vb
; stack 4096
unsetenv VBCC
assign c: vbcc:bin remove
if exists vbcc:targets/ppc-morphos
assign vlibmos: remove
assign vincludemos: remove
assign vbccmos: remove
endif
if exists vbcc:targets/ppc-warpos
assign vlibwos: remove
assign vincludewos: remove
assign vbccwos: remove
endif
if exists vbcc:targets/ppc-powerup
assign vlibppc: remove
assign vincludeppc: remove
assign vbccppc: remove
endif
if exists vbcc:targets/m68k-amigaos
; assign ixinclude: remove
assign vlibm68k: remove
assign vincludem68k: remove
assign vbccm68k: remove
endif
assign vbcc: remove
echo "done"
endif
skip ENDE
endif
if "{switch}" eq "set"
assign >nil: vbcc: exists
if warn
echo "vbcc not active !"
else
echo "setting vbcc ... " noline
stack 100000
alias vb tovbr vc
echo "done"
endif
skip ENDE
endif
echo "Usage: VBCC [ON] [OFF] [SET]"
assign >nil: vbcc: exists
if warn
echo "vbcc not active !"
else
echo "vbcc active !"
endif
lab ENDE
quit